using HundredMilesSoftware.UltraID3Lib;

namespace Apollo
{
    public class Track
    {
        private string filename;
        private UltraID3 id3Tags;

        public Track(string filename)
        {
            this.filename = filename;
            id3Tags = new UltraID3();
            id3Tags.Read(filename);
        }

        public string Filename
        {
            get { return filename; }
        }

        public UltraID3 ID3Tags
        {
            get { return id3Tags; }
        }

        public override string ToString()
        {
            return id3Tags.Artist + " - " + id3Tags.Title;
        }
    }
}